begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = 1;
	question = "Darius";
	text1 = "_Welcome! Is this your first time at the retreat?_";
	text5 = "_Hello again! How are things going?_";
	action = INTRO;

begintalknode 2;
	state = 1;
	nextstate = 2;
	condition = get_flag(3,1) == 0;
	question = "Are you Darius?";
	text1 = "_Yes! This is my writer's retreat! What do you write? Poetry? Fiction? Personal essays?_";

begintalknode 3;
	state = 2;
	nextstate = 3;
	question = "I'm not here for the retreat. Your messenger sent me about the ice goblins.";
	text1 = "_Finally! I sent him out a week ago. These ice goblins have been attacking my writers when they go for walks._";
	text2 = "_While the survivors generally make some money writing about the experience, writers on retreats are looking for a peaceful environment._";
	code =
		toggle_quest(0,1);
	break;

begintalknode 4;
	state = 3;
	nextstate = -1;
	question = "Okay, I can do that.";
	text1 = "_Great! Let me know when it's done!_";
	code =
		set_flag(3,2,1);
	break;
	action = END_TALK;

begintalknode 5;
	state = 1;
	nextstate = 6;
	condition = get_flag(3,1) == 1;
	question = "I killed the ice goblin chief.";
	text1 = "_Thank you so much! My writers will feel so much safer now._";
	code =
		if(get_flag(4,1) == 0){
		change_coins(100);
		
		set_flag(4,1,1);
		}
		toggle_quest(0,0);
	break;

begintalknode 6;
	state = 1;
	nextstate = -1;
	condition = get_flag(2,2) == 1;
	question = "I found this strange horn in the ice goblin cave. Do you know anything about it?";
	text1 = "_I've heard rumors about a dragon living here once. This horn might have something to do with it. Look around, you might find something._";
	action = END_TALK;

begintalknode 7;
	state = 1;
	nextstate = 7;
	condition = get_flag(5,1) == 1;
	question = "I woke the dragon and the snow melted.";
	text1 = "_That's nice, but I'm busy. Spring is our busiest season._";

begintalknode 8;
	state = -1;
	nextstate = -1;
	question = "Writer";
	text1 = "He's mumbling something about keys and sex. You don't want to know.";
	action = END_TALK;

begintalknode 9;
	state = -1;
	nextstate = -1;
	question = "Writer";
	text1 = "She's mumbling something about how to _get her out of this one alive._ She seems distracted.";
	action = END_TALK;

begintalknode 10;
	state = -1;
	nextstate = -1;
	question = "Writer";
	text1 = "He's mumbling something about fishing with his grandfather. You don't feel like disturbing him.";
	action = END_TALK;

begintalknode 11;
	state = -1;
	nextstate = -1;
	question = "Writer";
	text1 = "She's mumbling about rhymes. All of a sudden, she bursts out _Tangerine! Why didn't I think of it before?_ You're very confused, and back away slowly.";
	action = END_TALK;